package com.fdb.smcts.core.vo;

import java.io.Serializable;

/**
 * hsf服务提供方统一出参对象
 * @author Cytus_
 * @since 2018-04-30 17:55:21
 * @version 1.0
 * @param <T> 泛型对象，<h5>该对象需要继承Serializable接口</h5>
 */
@Deprecated
public class AppOutputVO<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String code;//响应码
	
	private String msg;//响应信息
	
	private int total;//数据类型为List时并进行分页查询时返回
	
	private T data;//数据

	public AppOutputVO(String code, String msg, int total, T data) {
		super();
		this.code = code;
		this.msg = msg;
		this.total = total;
		this.data = data;
	}
	
	public AppOutputVO() {
		super();
	}
	
	public void setResponseInfo(String code, String message) {
		this.code= code;
		this.msg = message;
	}
	
	public void setResponseInfo(String code, String msg, int total, T data) {
		this.code = code;
		this.msg = msg;
		this.total = total;
		this.data = data;
	}
	
	public void setResponseInfo(String code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	
}
